Skip to content

Conversation

@kevinsewell
Copy link
Contributor

@kevinsewell kevinsewell commented Oct 1, 2020

Currently the header map in HttpApiV2ProxyRequest cannot handle all lower-case headers. I replaced the standard HashMap with a TreeMap using the String.CASE_INSENSITIVE_ORDER comparator to ensure accommodate this.

This is a problem because headers arrive from the API Gateway in all lowercase, but in AwsHttpApiV2SecurityContext, for example, we checking for the capitalised Authorization header.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

@sapessi
Copy link
Contributor

sapessi commented Oct 1, 2020

Great catch! Thank you for the contribution!

@sapessi sapessi merged commit edf11fe into aws:master Oct 1, 2020
jogep pushed a commit to jogep/aws-serverless-java-container that referenced this pull request Dec 8, 2020
* fix: ensuring that headers are case insensitive

* fix: updating spring version in ci

Co-authored-by: Kevin Sewell <kevin@gometroapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants